<?php
namespace app\admin\model\train;

use think\Model;
use traits\model\SoftDelete;

class Article extends Model
{
    use SoftDelete;
    // 表名
    protected $name = 'train_article';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    public function getStatusList()
    {
        return ['1' => __('培训活动'), '2' => __('精英谱'), '3' => __('招生简章'), '4' => __('同学会沙龙活动'), '5' => __('关于同学会'), '6' => __('培训教师'),'8' => __('在线培训')];
    }
}
